package com.fandou.airobot.ui.recording;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import com.fandou.airobot.database.Record;
import com.fandou.airobot.domain.request.RecordingHistoryRequest;
import com.fandou.airobot.domain.request.Request;

import java.util.List;

/**
 * @author Jm
 * @date 2020/7/9 17:06
 * @description
 */
public class RecordHistoryViewModel extends ViewModel implements Request.IRecordHistoryRequest {

    private Request.IRecordHistoryRequest request = new RecordingHistoryRequest();

    @Override
    public LiveData<List<Record>> getRecordingHistoryLiveData() {
        return request.getRecordingHistoryLiveData();
    }

    @Override
    public void requestRecordingHistory() {
        request.requestRecordingHistory();
    }
}
